import { HTTP } from '../utils/http.js'
class LikeModel extends HTTP {
  likePost(behavior,artID,category) {
    let url=behavior=='like'?'like':'like/cancel'
    this.request({
      url: url,
      method:'POST',
      data:{
        art_id:artID,
        type:category
      }
    })
  }
  getClassicLikeStatus(artID,category,callback){
    this.request({
      url:'classic/'+category+'/'+artID+'/favor',
      success:callback
    })
  }
}
export { LikeModel }